package org.jivesoftware.smackx.pubsub;

import org.jivesoftware.smackx.pubsub.packet.PubSubNamespace;

public enum FormNodeType
{
  static
  {
    CONFIGURE = new FormNodeType("CONFIGURE", 1);
    OPTIONS = new FormNodeType("OPTIONS", 2);
    DEFAULT = new FormNodeType("DEFAULT", 3);
    FormNodeType[] arrayOfFormNodeType = new FormNodeType[4];
    arrayOfFormNodeType[0] = CONFIGURE_OWNER;
    arrayOfFormNodeType[1] = CONFIGURE;
    arrayOfFormNodeType[2] = OPTIONS;
    arrayOfFormNodeType[3] = DEFAULT;
    ENUM$VALUES = arrayOfFormNodeType;
  }

  public static FormNodeType valueOfFromElementName(String paramString1, String paramString2)
  {
    FormNodeType localFormNodeType;
    if (("configure".equals(paramString1)) && (PubSubNamespace.OWNER.getXmlns().equals(paramString2)))
      localFormNodeType = CONFIGURE_OWNER;
    while (true)
    {
      return localFormNodeType;
      localFormNodeType = valueOf(paramString1.toUpperCase());
    }
  }

  public PubSubElementType getNodeElement()
  {
    return PubSubElementType.valueOf(toString());
  }
}